#include"SList.h"

void Test1()
{
	Node * n1 = (Node*)malloc(sizeof(Node));
	n1->val = 1;

	Node * n2 = (Node*)malloc(sizeof(Node));
	n2->val = 2;

	Node * n3 = (Node*)malloc(sizeof(Node));
	n3->val = 3;

	Node * n4 = (Node*)malloc(sizeof(Node));
	n4->val = 4;
	n1->next = n2;
	n2->next = n3;
	n3->next = n4;
	n4->next = NULL;

	Node* plist = n1;
	SListPrint(plist);
	SListPushBack(&plist, 5);
	SListPrint(plist);
	SListPushFront(&plist, 0);
	SListPrint(plist);
	SListPopBack(&plist);
	SListPrint(plist);
	SListPopFront(&plist);
	SListPrint(plist);
}
int main()
{
	Test1();
	return 0;
}
